<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <input type="text" id="zhi">
    <button id="btn">提交</button>
    <!-- <a href="JavaScript:alert('警告')">点我就警告</a>行内式不推荐 -->
</body>
</html>
 <!-- 外挂式 -->
 <script src="./../js/input.js"></script>
<script>
    // 嵌入式
    // var a=parseInt(prompt("给我取给名字"))
    // var b=parseInt(prompt("你真的是饿了"))
    // alert(a)
    // document.write(a)
    // console.log(a+b)
    // console.log("44")
</script>
<script>
    var btn=document.getElementById("btn")
btn.onclick=function(){
    var zhi=document.getElementById("zhi")
    console.log(zhi.vlaue)
}
</script>